package com.ruoyi.web.controller.mall.shopExpressMessage.service.impl;

import com.ruoyi.web.controller.mall.shopExpressMessage.domain.ShopExpressMessage;
import com.ruoyi.web.controller.mall.shopExpressMessage.mapper.ShopExpressMessageMapper;
import com.ruoyi.web.controller.mall.shopExpressMessage.service.IShopExpressMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 快递单信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
@Service
public class ShopExpressMessageServiceImpl implements IShopExpressMessageService 
{
    @Autowired
    private ShopExpressMessageMapper shopExpressMessageMapper;

    /**
     * 查询快递单信息
     * 
     * @param id 快递单信息ID
     * @return 快递单信息
     */
    @Override
    public ShopExpressMessage selectShopExpressMessageById(String id)
    {
        return shopExpressMessageMapper.selectShopExpressMessageById(id);
    }

    /**
     * 查询快递单信息列表
     * 
     * @param shopExpressMessage 快递单信息
     * @return 快递单信息
     */
    @Override
    public List<ShopExpressMessage> selectShopExpressMessageList(ShopExpressMessage shopExpressMessage)
    {
        return shopExpressMessageMapper.selectShopExpressMessageList(shopExpressMessage);
    }

    /**
     * 新增快递单信息
     * 
     * @param shopExpressMessage 快递单信息
     * @return 结果
     */
    @Override
    public int insertShopExpressMessage(ShopExpressMessage shopExpressMessage)
    {
        return shopExpressMessageMapper.insertShopExpressMessage(shopExpressMessage);
    }

    /**
     * 修改快递单信息
     * 
     * @param shopExpressMessage 快递单信息
     * @return 结果
     */
    @Override
    public int updateShopExpressMessage(ShopExpressMessage shopExpressMessage)
    {
        return shopExpressMessageMapper.updateShopExpressMessage(shopExpressMessage);
    }

    /**
     * 删除快递单信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteShopExpressMessageByIds(String[] ids)
    {
        return shopExpressMessageMapper.deleteShopExpressMessageByIds(ids);
    }

    /**
     * 删除快递单信息信息
     * 
     * @param id 快递单信息ID
     * @return 结果
     */
    @Override
    public int deleteShopExpressMessageById(String id)
    {
        return shopExpressMessageMapper.deleteShopExpressMessageById(id);
    }
}
